package cn.snowsoft.iot.module.warning.service.warning.action;

import cn.snowsoft.iot.framework.common.pojo.CommonResult;
import cn.snowsoft.iot.module.warning.controller.admin.home.vo.ActionTypeCountVO;
import cn.snowsoft.iot.module.warning.controller.admin.warning.action.vo.WarningActionPageVO;
import cn.snowsoft.iot.module.warning.controller.admin.warning.action.vo.WarningActionSaveOrUpdateVO;
import cn.snowsoft.iot.module.warning.dal.dataobject.warning.action.WarningActionDO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IWarningActionService extends IService<WarningActionDO> {

    CommonResult saveUpdate(WarningActionSaveOrUpdateVO action);

    IPage<WarningActionDO> selectWarningPage(WarningActionPageVO actionPage);

    Boolean removeAction(List<Long> ids);

    CommonResult getActionById(Long id);


    List<ActionTypeCountVO> getActionTypeCount();

    List<WarningActionDO> getByIds(String ids);
}
